package cn.myspringboot.user.service;

import cn.myspringboot.user.domain.User;
import cn.myspringboot.user.query.UserQuery;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface UserService {
    User findById(Long id);

    List<User> findAll();

    void add(User user);

    void update(User user);

    void deleteById(Long id);

    void batchDelete(List<Long> ids);

    List<User> getUserByPage(UserQuery query);
}